<?php

namespace App\Library\Requests\SourceMaterial;

use App\Library\Requests\Base\BaseDTORequest;
use App\Library\Rules\MediasImgRule;
use App\Library\Rules\MediasVideoRule;
use App\Library\Rules\MediaVideoRule;

class SourceMaterialAddRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'title' => 'nullable|string|max:255',
            'imgIds' => ['nullable', 'array', new MediasImgRule],
            'videoIds' => ['nullable', 'array', new MediasVideoRule],
        ];
    }
}
